package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.TeacherInfo;
import com.example.pojo.User;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends MPJBaseMapper<User>, BaseMapper<User> {
    // 自定义修改
    @Update("UPDATE t_user SET status = #{uStatus} WHERE id = #{uId}")
    int changeStatus(@Param("uStatus") Integer uStatus,@Param("uId") Integer uId);
}
